﻿using System;
using System.ComponentModel.DataAnnotations;

namespace NOSDC.Pocos
{
    public class Comment
    {
        public virtual int CommentID { get; set; }

        [Required]
        [StringLength(1000)]
        public virtual string Message { get; set; }

        [Required]
        public DateTime DatePosted { get; set; }

        public virtual Article Article { get; set; }
        public virtual int ArticleID { get; set; }

        public virtual Guid UserID { get; set; }
        public  int StatusID { get; set; }
        public virtual Status Status { get; set; }

        public Comment()
        {
            DatePosted = DateTime.Now;
            StatusID = 1;
        }
    }
}
